<?php

		defined('BY_JYA') or exit('error');
		list($url)=$arguments;
		if(ATTACHMENT_TYPE){
			//远程附件
			$source=tomedia($url);
			$temp=ROOT_AT.random(30).$ext;
			copy($source,$temp);
		}else{
			$temp=ROOT_AT.$url;
		}
		$token =  cfc('account')->getAccessToken();
		$data['buffer'] = '@' .$temp;
		$url = 'https://api.weixin.qq.com/cgi-bin/media/uploadimg?access_token=' . $token;
		$result = cfc('http')->ihttp_request($url, $data);		
		$result =@json_decode($result['content'],true);
		return $result;
